import request from "@/utils/request";

// 查询列表
export function listRoleMenu(query) {
  return request({
    url: "/api/roleMenu/listAll",
    method: "get",
    params: query,
  });
}
 
// 新增
export function addRoleMenu(data) {
  return request({
    url: "/api/roleMenu/add",
    method: "post",
    data: data,
  });
}
// 删除
export function delRoleMenu(data) {
    return request({
      url: "/api/roleMenu/del",
      method: "post",
      data: data,
    });
  }